package com.itrus.manager;

import com.itrus.mapper.WalletMapper;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class WalletAdd3Manager {

    @Resource
    private WalletMapper walletMapper;

    public void addById3_no(boolean throwException){
        walletMapper.addBalance(3L,1);
        if (throwException){
            throw new RuntimeException("111111111");
        }
    }

}
